.mm-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: auto;
    display: none;
    background: rgba(0, 0, 0, .5);
}

.mm-popup--visible {
    display: block;
    z-index: 1113 !important;
}

    .mm-popup__close {
        position: absolute;
        top: 15px;
        right: 20px;
        padding: 0;
        width: 20px;
        height: 20px;
        cursor: pointer;
        outline: none;
        text-align: center;
        border-radius: 10px;
        border: none;
        text-indent: -9999px;
        background: transparent url('') no-repeat center center;
        background-size: 100%;
        margin: 0;
    }

    .mm-popup__input {
        display: block;
        width: 100%;
        height: 30px;
        border-radius: 3px;
        background: #f5f5f5;
        border: 1px solid #e9ebec;
        outline: none;
        -moz-box-sizing: border-box !important;
        -webkit-box-sizing: border-box !important;
        box-sizing: border-box !important;
        font-size: 14px;
        padding: 0 12px;
        color: #808080;
    }

    .mm-popup__btn {
        border-radius: 3px;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        padding: 0 10px;
        margin: 0;
        line-height: 32px;
        height: 32px;
        border: 1px solid #666;
        text-align: center;
        display: inline-block;
        font-size: 12px;
        font-weight: 400;
        color: #333;
        background: transparent;
        outline: none;
        text-decoration: none;
        cursor: pointer;
        font-family: "Open Sans", sans-serif;
    }

    .mm-popup__btn--success {
        background-color: #27ae60;
        border-color: #27ae60;
        color: #fff;
    }

    .mm-popup__btn--danger {
        background-color: #c5545c;
        border-color: #c5545c;
        color: #fff;
    }

    .mm-popup__box {
        width: 350px;
        position: absolute;
        top: 10%;
        left: 50%;
        margin-left: -175px;
        background: #fff;
        box-shadow: 0px 5px 20px 0px rgba(126,137,140,0.20);
        border-radius: 5px;
       
        overflow: hidden;
        z-index: 100;
    }

        .mm-popup__box__header {
            padding: 15px 20px;
            background: #EDF5F7;
            color: #454B4D;
        }

            .mm-popup__box__header__title {
                margin: 0;
                font-size: 16px;
                text-align: left;
                font-weight: 600;
            }

        .mm-popup__box__body {
            padding: 20px;
            line-height: 1.4;
            font-size: 14px;
            color: #454B4D;
            background: #fff;
            position: relative;
            z-index: 2;
        }

            .mm-popup__box__body p {
                margin: 0 0 5px;
            }

        .mm-popup__box__footer {
            overflow: hidden;
            padding: 40px 20px 20px;
        }

            .mm-popup__box__footer__right-space {
                float: right;
            }

                .mm-popup__box__footer__right-space .mm-popup__btn {
                    margin-left: 5px;
                }

            .mm-popup__box__footer__left-space {
                float: left;
            }

                .mm-popup__box__footer__left-space .mm-popup__btn {
                    margin-right: 5px;
                }

    .mm-popup__box--popover {
        width: 300px;
        margin-left: -150px;
    }

        .mm-popup__box--popover .mm-popup__close {
            position: absolute;
            top: 5px;
            right: 5px;
            padding: 0;
            width: 20px;
            height: 20px;
            cursor: pointer;
            outline: none;
            text-align: center;
            border-radius: 10px;
            border: none;
            text-indent: -9999px;
            background: transparent url('') no-repeat center center;
            background-size: 100%;
            margin: 0;
            z-index: 3;
        }

        .mm-popup__box--popover .mm-popup__box__body {
            padding: 20px;
        }

@media (max-width: 420px) {
    .mm-popup__box {
        width: auto;
        left: 10px;
        right: 10px;
        top: 10px;
        margin-left: 0;
    }

    .mm-popup__box__footer__left-space {
        float: none;
    }

    .mm-popup__box__footer__right-space {
        float: none;
    }

    .mm-popup__box__footer {
        padding-top: 30px;
    }

    .mm-popup__box__footer .mm-popup__btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

.mm-popup__box--popup-loading {

    width: 1rem;
    height: 1rem;
    overflow: hidden;
    text-indent: -1000rem;
    border-radius: 1rem;

    .mm-popup__box__body {
        padding: 0px;
        font-size: 1rem;
        line-height: 1rem;
        height: 1rem;
    }

    button.mm-popup__close {
        display: none;
    }

    footer.mm-popup__box__footer {
        display: none;
    }
}

.animate-loading {
    -webkit-animation-name: animate-loading;
    -webkit-animation-duration: 1s;
    -webkit-animation-delay: 0s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-play-state: running;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    animation: animate-loading 1s linear 0s alternate infinite none running;

    .mm-popup__box__body {
        -webkit-animation-name: animate-color;
        -webkit-animation-duration: 1s;
        -webkit-animation-delay: 0s;
        -webkit-animation-timing-function: ease;
        -webkit-animation-play-state: running;
        -webkit-animation-iteration-count: infinite;
        -webkit-animation-direction: alternate;
        animation: animate-color 1s ease 0s alternate infinite none running;
    }
}

@-webkit-keyframes animate-color {
    from {
        background: #797979;
    }

    to {
        background: #cacaca;
    }
}

@-webkit-keyframes animate-loading {
    from {
        -webkit-transform: translateX(-50px);
    }

    to {
        -webkit-transform: translateX(50px);
    }
}

@keyframes animate-color {
    from {
        background: #797979;
    }

    to {
        background: #cacaca;
    }
}

@keyframes animate-loading {
    from {
        transform: translateX(-50px);
    }

    to {
        transform: translateX(50px);
    }
}

.mm-popup__box--popup-alert{

    width: 20rem;
    top: 50%;
    left: 50%;
    margin-left: -10rem;
    margin-top: -4rem;
    text-align: center;
    border-radius: 1rem;
    .mm-popup__close{
        opacity: 0;
    }
    .mm-popup__box__footer__right-space{
        float: none;
    }
    .mm-popup__box__header{
        padding: .8rem 0;
        .mm-popup__box__header__title{
            text-align: center;
            font-size: 1.1rem;
        }
        background: #fff;
    }
    .mm-popup__box__body{
        padding: 0 .5rem .5rem .5rem;
        font-size: 1rem;
        line-height: 1.8rem;
    }
    .mm-popup__box__footer{
        padding:0;
        .mm-popup__btn{
            height: 2.8rem;
            line-height: 2.8rem;
            margin-left: 0;
            border-radius: 0;
            border: 0;
            border-top: 1px solid #e1e1e1;
            background: #f2f2f2;
            font-size: 1rem;
            color: #5b28ff;    
            font-weight: 700;
        }
    }
}